import App from './App.vue'
import { createSSRApp } from 'vue'
import uviewPlus from 'uview-plus'
import Vant from 'vant';
import { createPinia } from 'pinia'
import piniaPersist from 'pinia-plugin-persist' 
import 'vant/lib/index.css'

const pinia = createPinia()
pinia.use(piniaPersist)

export function createApp() {
	const app = createSSRApp(App) 
	app.use(Vant)
	app.use(uviewPlus)
	app.use(pinia)
	return { app, pinia }
}